<extend name="../application/admin/view/common/base.html" />
<block name="body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <input class="layui-input" placeholder="渠道名称" name="name"  value="{$name|default=''}">
            <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
            <button class="layui-btn layui-btn-primary" type="button" onclick="window.location.href='?'"><i class="iconfont">&#xe631;</i></button>
        </form>
    </div>
    <xblock>
        <button class="layui-btn" onclick="x_admin_show('添加','/admin/channel.add')"><i class="layui-icon"></i>添加渠道</button>
        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
    </xblock>
    <table class="layui-table">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>ID</th>
            <th>名称</th>
            <th>注册地址</th>
            <th>注册人数</th>
            <th>操作</th>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>
                    <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$vo.id}'><i class="layui-icon">&#xe605;</i></div>
                </td>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.register_url}</td>
                <td>{$vo.register_count}</td>
                <td>
                    <a href="javascript:;" onclick="x_admin_show('编辑','/admin/channel.edit?id={$vo.id}')">编辑</a>
                    <a href="javascript:;" onclick="opmsg('/admin/channel.del?id={$vo.id}','删除')">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="page">
        {$page|raw}
    </div>
</block>

<block name="bottom">

</block>